package com.agileboot.admin.controller.test;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"sync_medicine_queue"})
public class DirectSyncDataConsumer {
    @RabbitHandler
    public void reviceMessage(String msg){
        System.out.println("sync数据->>:"+msg);
    }
}
